package com.banyuan.lesson.exception;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class Test {
    public static void main(String[] args) {
        try{
            test1();
        } catch(IndexOutOfBoundsException e1){

        } catch(Exception e){

        }
        try {
            Class clazz = Class.forName("aaa");
            Constructor constructor = clazz.getConstructor();
            Object o =  constructor.newInstance();
        } catch (ClassNotFoundException | NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {
            e.printStackTrace();
        }


    }

    public static void test1(){

    }
}
